const express = require('express');
const router = express.Router();
router.get('/', (req, res) => {
    const content = [];
    for(let i = 0; i < 40; i++) content.push({
        id: `2019${i}`,
        code: `string-${i}`,
        brandId: '1',
        brandCode: 'PP',
        brandName: '品牌1',
        faultType: 2,
        dutyUnitId: '1',
        dutyUnitCode: 'zr',
        dutyUnitName: '责任单位1',
        supplierId: 'gys',
        supplierCode: 'PP',
        supplierName: '供应商1',
        partId: '1',
        partCode: 'BJ-0001',
        transmission: 'BSX-0001',
        status: 1,
        remark: 'string',
        rowVersion: 'string',
        options: ['update', 'abandon']
    });
    res.json({
        message: '',
        payload: {
            content,
            totalElements: 40,
        }
    });
});
router.post('/', (req, res) => {
    res.json({
        message: '新增'
    });
});
router.put('/:id/abandon', (req, res) => {
    res.json({
        message: '作废'
    });
});
router.put('/:id', (req, res) => {
    res.json({
        message: '编辑'
    });
});
module.exports = router;
